var gFloor2D : GameObject;
var gWall2D  : GameObject;
var gFloor3D : GameObject;
var gWall3D  : GameObject;

var gOPlayer : Transform;


function Update()
{
	if(changeView.startCamera == 2)
	{
		// Hide 2D objects
		gFloor2D.renderer.enabled = false;
		gWall2D.renderer.enabled = false;
//		Debug.Log("Hide 2D Objects!");

		// Render 3D objects
		gFloor3D.renderer.enabled = true;
		gWall3D.renderer.enabled = true;
//		Debug.Log("Render 3D Objects!");
		
		// Translate Player object to 3D position
		gOPlayer.transform.localScale = Vector3(1, 1, 1);
		gOPlayer.transform.localPosition = Vector3(-3.381015, 0.3531623, -11.39405);
//		Debug.Log("Translate Player Object to 3D!");
	}
	if(changeView.startCamera == 1)
	{
		// Render 2D objects
		gFloor2D.renderer.enabled = true;
		gWall2D.renderer.enabled = true;
//		Debug.Log("Render 2D Objects!");
		
		//	Hide 3D objects
		gFloor3D.renderer.enabled = false;
		gWall3D.renderer.enabled = false;
//		Debug.Log("Hide 3D Objects!");
	
		// Translate Player object to 2D position
		gOPlayer.transform.localScale = Vector3(0.8, 0.8, 0.2);
		gOPlayer.transform.localPosition = Vector3(-2.479171, 0.1859665, -16.17439);
//		Debug.Log("Translate Player Object to 2D!");
	}
}
